<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>箭头函数与解构赋值</title>
	</head>
	<script>
		arrow_remainder = ([i,j]) => i % j;				//　求余数
		console.log('8 % 3 = '+arrow_remainder([8,3]));
		arrow_max = (...args) => Math.max(...args);		//　求最大值
		max=arrow_max(...[12,87,3])
		console.log('[12,87,3]的最大值是：'+max)
		arrow_min = (...args) => Math.min(...args);		//　求最小值
		min=arrow_min(...[12,87,3])
		console.log('[12,87,3]的最小值是：'+min)
	</script>
	<body>
	</body>
</html>
